import { FC } from "react";

interface IProps {
  name?: string;
  onClose: () => void;
}

const Modal: FC<IProps> = ({ onClose }) => {
  return (
    <div className="modal-mask">
      <div className="modal-container">
        <div className="modal-header">
          default header
          <span onClick={onClose}>X</span>
        </div>
        <div className="modal-body">default body</div>
        <div className="modal-footer">default footer</div>
      </div>
    </div>
  );
};

export default Modal;
